﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000243 RID: 579
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChessRogueGoAheadCsReq : IMessage<ChessRogueGoAheadCsReq>, IMessage, IEquatable<ChessRogueGoAheadCsReq>, IDeepCloneable<ChessRogueGoAheadCsReq>, IBufferMessage
	{
		// Token: 0x170007B1 RID: 1969
		// (get) Token: 0x06001A35 RID: 6709 RVA: 0x0004BD68 File Offset: 0x00049F68
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChessRogueGoAheadCsReq> Parser
		{
			get
			{
				return ChessRogueGoAheadCsReq._parser;
			}
		}

		// Token: 0x170007B2 RID: 1970
		// (get) Token: 0x06001A36 RID: 6710 RVA: 0x0004BD6F File Offset: 0x00049F6F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChessRogueGoAheadCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170007B3 RID: 1971
		// (get) Token: 0x06001A37 RID: 6711 RVA: 0x0004BD81 File Offset: 0x00049F81
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChessRogueGoAheadCsReq.Descriptor;
			}
		}

		// Token: 0x06001A38 RID: 6712 RVA: 0x0004BD88 File Offset: 0x00049F88
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueGoAheadCsReq()
		{
		}

		// Token: 0x06001A39 RID: 6713 RVA: 0x0004BD90 File Offset: 0x00049F90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueGoAheadCsReq(ChessRogueGoAheadCsReq other) : this()
		{
			this.cellId_ = other.cellId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06001A3A RID: 6714 RVA: 0x0004BDB5 File Offset: 0x00049FB5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueGoAheadCsReq Clone()
		{
			return new ChessRogueGoAheadCsReq(this);
		}

		// Token: 0x170007B4 RID: 1972
		// (get) Token: 0x06001A3B RID: 6715 RVA: 0x0004BDBD File Offset: 0x00049FBD
		// (set) Token: 0x06001A3C RID: 6716 RVA: 0x0004BDC5 File Offset: 0x00049FC5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CellId
		{
			get
			{
				return this.cellId_;
			}
			set
			{
				this.cellId_ = value;
			}
		}

		// Token: 0x06001A3D RID: 6717 RVA: 0x0004BDCE File Offset: 0x00049FCE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChessRogueGoAheadCsReq);
		}

		// Token: 0x06001A3E RID: 6718 RVA: 0x0004BDDC File Offset: 0x00049FDC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChessRogueGoAheadCsReq other)
		{
			return other != null && (other == this || (this.CellId == other.CellId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06001A3F RID: 6719 RVA: 0x0004BE0C File Offset: 0x0004A00C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.CellId != 0U)
			{
				num ^= this.CellId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001A40 RID: 6720 RVA: 0x0004BE4B File Offset: 0x0004A04B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001A41 RID: 6721 RVA: 0x0004BE53 File Offset: 0x0004A053
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001A42 RID: 6722 RVA: 0x0004BE5C File Offset: 0x0004A05C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.CellId != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.CellId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001A43 RID: 6723 RVA: 0x0004BE90 File Offset: 0x0004A090
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.CellId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CellId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001A44 RID: 6724 RVA: 0x0004BECE File Offset: 0x0004A0CE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChessRogueGoAheadCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.CellId != 0U)
			{
				this.CellId = other.CellId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001A45 RID: 6725 RVA: 0x0004BEFF File Offset: 0x0004A0FF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001A46 RID: 6726 RVA: 0x0004BF08 File Offset: 0x0004A108
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 96U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.CellId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04000B01 RID: 2817
		private static readonly MessageParser<ChessRogueGoAheadCsReq> _parser = new MessageParser<ChessRogueGoAheadCsReq>(() => new ChessRogueGoAheadCsReq());

		// Token: 0x04000B02 RID: 2818
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000B03 RID: 2819
		public const int CellIdFieldNumber = 12;

		// Token: 0x04000B04 RID: 2820
		private uint cellId_;
	}
}
